package com.example.activemq;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class MessageController {

    @Autowired
    Product product;


    @ResponseBody
    @RequestMapping("sendMsg")
    public String sendMSG(String name,String msg){
        String sql = "";
        product.sendMessage(name,msg);
        return msg;
    }

}
